package element;

import structure.Identifiable;

/**
 *
 * @author Vojta
 */
public abstract class Element implements Identifiable {

    public boolean equals(Element e) {
        return getId() == e.getId();
    }
    
    public int compareTo(Object o) {
        if (getId() > ((Element) o).getId()) {
            return 1;
        }
        if (getId() < ((Element) o).getId()) {
            return -1;
        }
        return 0;
    }
}
